package cn.getech.data.development.model.dto;

import cn.getech.data.development.entity.BdpRealTaskAlarmObject;
import cn.getech.data.development.entity.flink.FlinkNodeUnion;
import cn.getech.data.development.model.vo.RealTimeTaskVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 实时任务菜单和实时任务
 */
@Data
public class RealTimeTaskMenuAndTaskDto {

    /**
     * 父级菜单，根菜单id:0
     */
    private Integer parentId;


    /**
     * 新的父级菜单，根菜单id:0
     */
    private Integer newParentId;

    /**
     * 项目id
     */
    private Integer procId;

    /***
     * 新的项目id
     */
    private Integer newProcId;

    /**
     * 0：根目录 1：文件夹 2：任务
     */
    private Integer menuType;
    /**
     * 目录名称
     */
    private String name;

    /**
     * 目录级别
     */
    private Integer level;

    /**
     * 描述
     */
    private String description;

    /**
     * 1:可用，0：删除
     */
    private Integer state;

    private Integer id;

    /***
     * 新的菜单id
     */
    private Long newId;

    private Integer createPer;

    /**
     * 新的创建人id
     */
    private Integer newCreatePer;

    private String createPerName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private Integer updatePer;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /***
     * 工作流
     */
    private RealTimeTaskVO realTimeTaskVO;
    /***
     * 节点关联信息
     */
    List<FlinkNodeUnion> lineList;

    /***
     * 报警规则关联表
     */
    private List<BdpRealTaskAlarmObject> alarmObjects;

}
